package com.easyaccount.dao;

import com.easyaccount.bean.BillTO;
import com.easyaccount.bean.BillVO;
import com.easyaccount.model.Bill;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BillMapper {
    int deleteByPrimaryKey(Integer billId);

    int insert(Bill record);

    int insertSelective(Bill record);

    Bill selectByPrimaryKey(Integer billId);

    int updateByPrimaryKeySelective(Bill record);

    int updateByPrimaryKey(Bill record);

    List<BillTO> selectPageByUserId(@Param("start") int start, @Param("size") int size, @Param("userId") Integer userId);

    int selectPageByUserIdCount(@Param("userId") Integer userId);

    List<BillTO> selectPageByProgress(@Param("start") int start, @Param("size") int size, @Param("progress") Integer progress);

    int selectPageByProgressCount(@Param("progress") Integer progress);


}